<?php
class Application_Form_Contact extends Zend_Form
{
	public function init()
	{
		$this->setName('contact');
		
		$id = new Zend_Form_Element_Hidden('id');
		$id->addFilter('Int');
		
		$email = new Zend_Form_Element_Text('email');
		$email->setLabel('Email')->setRequired(true);
		
		$dbList = new Application_Model_DbTable_List();
		
		$arrList = $dbList->getAllList();
		
		$listId = new Zend_Form_Element_Select('list_id');
		$listId->setMultiOptions($arrList);
		$listId->setLabel('List')->setRequired(true);

		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')->setLabel('Submit');

		$this->addElements(array($id,$email, $listId, $submit));
		
	}
}